package com.example.demoview;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class FenLeiData {

    public List chart_lc_fenleia(){
        List<String> detail = new ArrayList<>();
        detail.add("量测分类");
        detail.add("数量");
        return detail;
    }

    public List chart_lc_fenleib(){
        List detail = new ArrayList<>();
        detail.add("血压");
        detail.add(12213);
        return detail;
    }

    public List chart_lc_fenleic(){
        List detail = new ArrayList<>();
        detail.add("血糖");
        detail.add(2212);
        return detail;
    }

    public List chart_lc_fenleid(){
        List detail = new ArrayList<>();
        detail.add("心电");
        detail.add(336);
        return detail;
    }

    public List chart_lc_fenleie(){
        List detail = new ArrayList<>();
        detail.add("血氧");
        detail.add(15);
        return detail;
    }

    public List chart_lc_fenleif(){

        List detail = new ArrayList<>();
        detail.add("尿酸");
        detail.add(2);
        return detail;
    }

    public List chart_lc_fenleig(){

        List detail = new ArrayList<>();
        detail.add("胆固醇");
        detail.add(23);
        return detail;
    }

    public Map DataFenLei() {

        List chart_lc_fenleiA=chart_lc_fenleia();
        List chart_lc_fenleiB=chart_lc_fenleib();
        List chart_lc_fenleiC=chart_lc_fenleic();
        List chart_lc_fenleiD=chart_lc_fenleid();
        List chart_lc_fenleiE=chart_lc_fenleie();
        List chart_lc_fenleiF=chart_lc_fenleif();
        List chart_lc_fenleiG=chart_lc_fenleig();


        List<List> chart_lc_fenlei = new ArrayList<>();
        chart_lc_fenlei.add(chart_lc_fenleiA);
        chart_lc_fenlei.add(chart_lc_fenleiB);
        chart_lc_fenlei.add(chart_lc_fenleiC);
        chart_lc_fenlei.add(chart_lc_fenleiD);
        chart_lc_fenlei.add(chart_lc_fenleiE);
        chart_lc_fenlei.add(chart_lc_fenleiF);
        chart_lc_fenlei.add(chart_lc_fenleiG);

        Map data = new HashMap();
        data.put("chart_lc_fenlei",chart_lc_fenlei);
        Map rejson = new HashMap();
        rejson.put("code",0);
        rejson.put("data",data);
        return rejson;
    }


}
